import React from 'react'
import {View} from 'react-native'
import PropTypes from 'prop-types'

const p = {}

p.common = {} // 通用
p.singleProps = {} // 单选

// --- 通用 ---
p.common.prototype = {
  ...View.prototype,
  visible: PropTypes.bool,
}
p.common.defaultProps = {...View.defaultProps}

// --- 单选 ---
p.singleProps.prototype = {
  ...View.prototype,
  title: PropTypes.string,
  list: PropTypes.array,
  selectValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
  onChangeText: PropTypes.func,
  dismiss: PropTypes.func,
  onConfirm: PropTypes.func,
  _superCallBack: PropTypes.func,
}
p.singleProps.defaultProps = {
  ...View.defaultProps,
  title: '请选择',
}

export default p
